﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Program
    {
        static void Main(string[] args)
        {
            airplane airplane = new airplane();
            airplane.veh();
            fly(airplane);
            Console.WriteLine("--------------");
            birdie birdie = new birdie();
            birdie.cre();
            fly(birdie);
            Console.WriteLine("--------------");
            Superman Superman = new Superman();
            Superman.cre();
            fly(Superman);



        }
        static void fly(Ifly fly)
        {
            fly.fly();
        }
    }
}
